#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <string>
#include <vector>
#include <unistd.h>

using namespace std;

class CC{
private:
    int n;
    CC():n(3){}
    CC(const CC &rhs) = delete;
public:
    ~CC(){}
    static CC &getInstance(){
        static CC c;
        return c;
    }



};
int main()
{
    CC &c = CC::getInstance();
    CC &d = CC::getInstance();
    cout<<&c<<endl;
    cout<<&d<<endl;
    
    return 0;
}

